<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/app.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">隐私协议</h1>
			<div class="red mui-pull-right" style="line-height: 44px;">
				<span>倒计时:</span>
				<span id="time">3</span>
			</div>
		</header>
		<div class="mui-content">
			技术开发打开几十块登记卡看就看等级考试大姐夫考拉寄快递今飞凯达尽快空间肯定是就发了·

			<button id="okBtn" type="button" class="mui-btn btn-disabled mui-btn-block" disabled
				style="position: fixed;bottom: 30px;width: 100%;">同意</button>
		</div>

		<script src="js/mui.js"></script>
		<script src="libs/request-1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui.init()
			mui.plusReady(function() {
				main()
			})
			main()

			function main() {
				djs()
				document.getElementById('okBtn').addEventListener('tap', function() {
					console.log(111);
					mui.back()
				})
			}


			function djs() {
				let shij = 3
				let okBtn = document.getElementById("okBtn")
				let timer = setInterval(() => {
					shij--
					document.getElementById("time").innerHTML = shij
					if (!shij) {
						okBtn.disabled = false
						okBtn.classList.remove('btn-disabled')
						okBtn.classList.add('mui-btn-blue')
						clearInterval(timer)
					}
				}, 1000)
			}
		</script>
	</body>

</html>